package com.example.chenhaosblog.service;

import com.example.chenhaosblog.bean.User;
import com.example.chenhaosblog.utils.Page;
import com.example.chenhaosblog.utils.PageData;

import java.util.List;
import java.util.Map;

public interface IUserService {
    List<User> findAllUser();

    void createUser(User user) throws Exception;

    void createUser2(PageData pageData) throws Exception;

    List<PageData> findAll(PageData pageData) throws Exception;

    String getPasswordByUsername(String username);

    User findByUsername(PageData pageData)  throws Exception;

    void add(PageData pageData) throws Exception;

    PageData findByUser(PageData pageData) throws Exception;

    List<PageData> list(Page page) throws Exception;

    List<PageData> queryArticle(PageData pageData) throws Exception;
}
